package com.project.bean;

import java.time.LocalDate;
import java.util.List;

/**
 * 员工实体类
 */
public class EmployeeBean {
    //员工id
    private int id;
    //员工姓名
    private String name;
    //员工电话
    private String phone;
    //员工生日
    private LocalDate birthday;
    //员工入职日期
    private LocalDate  entryDate=LocalDate.now();
    //专长
    private String speciality;
    //在职状态
    private String status="在职";
    //员工工资
    private int salary;
    //员工头像
    private String face;

    //参与项目集合
    private List<ProgressBean> progressList;
    public EmployeeBean() {
    }

    public String getFace() {
        return face;
    }

    @Override
    public String toString() {
        return "EmployeeBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", birthday=" + birthday +
                ", entryDate=" + entryDate +
                ", speciality='" + speciality + '\'' +
                ", status='" + status + '\'' +
                ", salary=" + salary +
                ", face='" + face + '\'' +
                ", progressList=" + progressList +
                '}'+"\n";
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setFace(String face) {
        this.face = face;
    }

    public List<ProgressBean> getProgressList() {
        return progressList;
    }

    public void setProgressList(List<ProgressBean> progressList) {
        this.progressList = progressList;
    }

    public EmployeeBean(String name, String phone, String birthday, String speciality, int salary, String face) {
        this.name = name;
        this.phone=phone;
        this.birthday = LocalDate.parse(birthday);
        this.speciality = speciality;
        this.salary = salary;
        this.face=face;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public LocalDate getEntryDate() {
        return entryDate;
    }

    public void setEntryDate(LocalDate entryDate) {
        this.entryDate = entryDate;
    }

    public String getSpeciality() {
        return speciality;
    }

    public void setSpeciality(String speciality) {
        this.speciality = speciality;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }
}
